import request from '@/utils/request'
import { praseStrEmpty } from "@/utils/ruoyi";

// 查询参数列表
export function listTermTimeShift(query) {
  return request({
    url: '/workJobApi/termTimeShift/listTermTimeShift',
    method: 'get',
    params: query
  })
}

// 查询详细
export function getTermTimeShift(id) {
  return request({
    url: '/workJobApi/termTimeShift/' + praseStrEmpty(id),
    method: 'get'
  })
}

// 新增长期工班次
export function add(data) {
  return request({
    url: '/workJobApi/termTimeShift/add',
    method: 'post',
    data: data
  })
}

// 修改长期工班次
export function update(data) {
  return request({
    url: '/workJobApi/termTimeShift/',
    method: 'put',
    data: data
  })
}


// 修改长期工班次状态
export function modifTermTimeShiftStatus(data) {
  return request({
    url: '/workJobApi/termTimeShift/modifTermTimeShiftStatus',
    method: 'post',
    data: data
  })
}

// 删除长期工班次
export function delTermTimeShift(id) {
  return request({
    url: '/workJobApi/termTimeShift/' + id,
    method: 'delete'
  })
}
